package com.iweb.day07;

/**
 * @author jay
 * @date 2021/11/7
 * @desc
 */
public class PlasticDoor extends Door
        implements Lockable {
    @Override
    public void open() {
        System.out.printf("向左推，%s材质的%s开了\n",
                this.getType(), this.getName());
    }

    @Override
    public void close() {
        System.out.printf("向右拉，%s材质的%s关了\n",
                this.getType(), this.getName());
    }

    @Override
    public void lockup() {
        System.out.println(this.getName()+"锁上了。。。");
    }

    @Override
    public void openLock() {
        System.out.println(this.getName()+"锁开了。。。");
    }


}
